package com.tan.steamship.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tan.steamship.domain.CommentPo;
import com.tan.steamship.vo.CommentVO;

import java.util.List;
import java.util.Map;

/**
* @author 85726
* @description 针对表【comment】的数据库操作Service
* @createDate 2025-03-18 23:17:11
*/
public interface CommentService extends IService<CommentPo> {

    /**
     * 通过博客id获取评论列表
     * @param blogId
     * @return
     */
    List<CommentVO> getCommentsByBlogId(Integer blogId);

    /**
     * 新增评论
     * @param para
     * @return
     */
    CommentPo addComment(Map<String, Object> para);

}
